package org.zjx.window.strategy.impl;


import org.zjx.window.action.Action;
import org.zjx.window.action.impl.DelayAction;
import org.zjx.window.strategy.IStrategy;
import org.zjx.window.window.IWindow;

/**
 * 默认策略
 */
public class DefaultStrategy implements IStrategy {

    @Override
    public Action analyze(IWindow window) {
        return new DelayAction(window, 500);
    }

    @Override
    public String getName() {
        return "DefaultStrategy";
    }

    @Override
    public int getPriority() {
        return 100; // 最低优先级
    }

    @Override
    public boolean isApplicable(IWindow window) {
        // 默认策略总是适用
        return true;
    }
}